package com.mohan.aop.impl;

import com.mohan.bean.Color;
import org.springframework.beans.factory.FactoryBean;


public class ColorFactoryBean implements FactoryBean<Color> {

    @Override
    public Color getObject() throws Exception {
        System.out.println("过来获取了bean");
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
